import request from '@/utils/request'

export function loadUserGategory() {
  return request({
    url: '/system/userGategory/all',
    method: 'get'
  })
}

// 查询用户标签设定列表
export function listUserGategory(query) {
  return request({
    url: '/system/userGategory/list',
    method: 'get',
    params: query
  })
}

// 查询用户标签设定详细
export function getUserGategory(id) {
  return request({
    url: '/system/userGategory/' + id,
    method: 'get'
  })
}

// 新增用户标签设定
export function addUserGategory(data) {
  return request({
    url: '/system/userGategory',
    method: 'post',
    data: data
  })
}

// 修改用户标签设定
export function updateUserGategory(data) {
  return request({
    url: '/system/userGategory',
    method: 'put',
    data: data
  })
}

// 删除用户标签设定
export function delUserGategory(id) {
  return request({
    url: '/system/userGategory/' + id,
    method: 'delete'
  })
}

// 导出用户标签设定
export function exportUserGategory(query) {
  return request({
    url: '/system/userGategory/export',
    method: 'get',
    params: query
  })
}